package com.byq.mm.common.engine.listener;

import com.byq.mm.common.engine.Environment;

import java.util.Collection;


import org.jivesoftware.smack.packet.Presence;
import org.jivesoftware.smack.roster.RosterListener;

public class SmartRosterListener  extends AbstractListener implements RosterListener {

	public SmartRosterListener(Environment e) {
		super(e);

	}
	public void entriesAdded(Collection<String> addresses) {

		env.getEventCenter().notifyPresenceChange();

	}

	public void entriesDeleted(Collection<String> addresses) {

		env.getEventCenter().notifyPresenceChange();

	}

	public void entriesUpdated(Collection<String> addresses) {

		env.getEventCenter().notifyPresenceChange();


	}

	public void presenceChanged(Presence presence) {


		env.getEventCenter().notifyPresenceChange();


	}

}
